package cn.jn.lhm.teacher.feign;

import cn.jn.lhm.teacher.feign.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/16 - 21:35
 */
@FeignClient(value = "order-service",fallback = OrderClientImpl.class)
@Service
public interface OrderClient {

    /**
     * RPC远程调用
     * @param userId 用户ID
     * @param courseId 课程ID
     * @return
     */
    @GetMapping("/order/log/get/order/info/{userId}/{courseId}")
    public boolean getOrderInfoToCheckStatus(@PathVariable("userId")String userId,
                                             @PathVariable("courseId")String courseId);
}
